module.exports = {
    setLoginStatus: setLoginStatus,
    delLoginStatus: delLoginStatus,
};
function setLoginStatus(req, res){
    req.session.isLogin = true;
    req.session.ID= res.uid;
    req.session.info = res;
}
function delLoginStatus(req){
    req.session.isLogin = false;
    delete req.session.ID;
    delete req.session.info;
}